package com.xbongbong.paas.field;

import lombok.Getter;
import lombok.NonNull;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author: wufeng
 * @date: 2018/8/24 16:22
 * @desrcption: 关联其他表单
 */
@Getter
@Setter
@ToString
public class LinkFormPoJo implements Serializable {
    private static final long serialVersionUID = -4547379539867985897L;
    /**
     * 应用id
     */
    private Long sourceAppId;

    /**
     * 表单模板对应的菜单id
     */
    @NotNull(message = "请设置关联表单")
    private Long sourceMenuId;
    /**
     * 表单模板对应的表单id
     */
    @NotNull(message = "请设置关联表单")
    private Long sourceFormId;

    /**
     * 显示的字段
     */
    @NotNull(message = "关联表单显示的字段不能为空")
    private String displayField;

    /**
     * saas标识
     * @see com.xbongbong.pro.enums.SaasMarkEnum
     */
    @NotNull(message = "关联表单saas标识不能为空")
    private Integer sourceSaasMark;

    /**
     * 业务类型
     * @see com.xbongbong.saas.enums.XbbRefTypeEnum
     */
    @NotNull(message = "关联表单业务类型不能为空")
    private Integer sourceBusinessType;
}
